//
//  SendTableViewCell.h
//  leo
//
//  Created by 常艳 on 15/10/4.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>
#import "Chat.h"
#import "SyncManager.h"
#import "DataManager.h"
#define send_tag @"SendTableViewCell------------------------"
@interface SendTableViewCell : UITableViewCell<AVAudioRecorderDelegate,AVAudioPlayerDelegate,AVAudioSessionDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *headImg;
@property (weak, nonatomic) IBOutlet UIImageView *voiceImg;
@property (weak, nonatomic) IBOutlet UILabel *durationLable;
@property (weak, nonatomic) IBOutlet UILabel *timeLable;
@property (weak, nonatomic) IBOutlet UIButton *voiceBtn;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator;
@property (weak, nonatomic) IBOutlet UIButton *failBtn;


@property(nonatomic,strong) AVAudioPlayer *player;
@property(nonatomic,strong) NSString *recordPath;
@property(nonatomic) BOOL is_play;
@property(nonatomic,strong) Chat *chat;
@property(nonatomic,assign) int type;
@property(nonatomic,strong) SyncManager *syncManager;
@property(nonatomic,strong) DataManager *dataManager;
-(void)initData;
-(void)stop;
-(void)initUI;
@end
